<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<form id="pagerForm" method="post" action="../Craft.do">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="20" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="../Craft.do?m=doPreAdd" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="../Craft.do?m=doDel&craId={cra_id}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="../Craft.do?m=doPreUpdate&craId={cra_id}" target="navTab"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="20"></th>
				<th width="80" align="center">编号</th>
				<th width="80" align="center">工种</th>
				<th width="80" align="center">姓名</th>
				<th align="center">工程施工内容</th>
				<th width="150"align="center">工程施工照片</th>
				<th width="150" align="center">下载</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody>
			 <c:forEach items="${list}" var="cra">
			 <tr target="cra_id" rel="${cra.craId}">
			  	  <td></td>
			      <td>${cra.craId}</td>
			      <td>${cra.craClass}</td>
			      <td>${cra.craName}</td>
			      <td>${cra.craContent}</td>
			      <td>
					<a target="_blank" href="../File.do?fileName=${cra.craImg}"><img alt="" src="../File.do?fileName=${cra.craImg}" valign="middle" height="50px"></a>
				  </td>
				  <td>
						<a href="../File.do?m=download&name=${cra.craOvertime}&fileName=${cra.craImg}">${cra.craOvertime}</a>
				  </td>
				  <td></td>
			 </tr>
			  </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示20条，共${totalCount}条</span>
		</div>

		<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="20" pageNumShown="10" currentPage="${pageNum}"></div>

	</div>
</div>
